package com.huluobo.high3videoproject.mvp.search.model;

import com.huluobo.high3videoproject.bean.VideoBeanResult;
import com.huluobo.high3videoproject.mvp.search.presenter.SearchContract;
import com.huluobo.high3videoproject.net.BaseModel;

import io.reactivex.Observable;

public class SearchModel extends BaseModel implements SearchContract.Model {
    @Override
    public Observable<VideoBeanResult> getVideos(int currentPage, int size) {
        return apiService.getVideos(currentPage, size);
    }

    @Override
    public Observable<VideoBeanResult> findVideoByName(String keywords) {
        return apiService.findVideoByName(keywords);
    }
}
